import request from '@/utils/request'
/**
 * 创建授权
 * @param {*} data 
 * @returns 
 */
export function createOne(data) {
    return request({
        url: '/system/privilege/grant',
        method: 'post',
        data: data
    })
}
/**
 * 取消授权
 * @param {*} data 
 * @returns 
 */
export function cancelOne(data){
    return request({
        url: '/system/privilege/cancel',
        method: 'post',
        data: data
    })
}

export function deleteOne(id){

}